Method: Attr::Gather::Workflow::TaskGraph#<<
- Defined in:
- lib/attr/gather/workflow/task_graph.rb
#<<(hash) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/attr/gather/workflow/task_graph.rb', line 24 def <<(hash) name, depends_on = hash.values_at :name, :depends_on task = build_task(name, depends_on) validate_for_insert!(task) registered_tasks.each do |t| tasks_hash[t] << task if t.depends_on?(task) tasks_hash[t].uniq! end tasks_hash[task] = all_dependencies_for_task(task) end |